﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="EditUser.aspx.cs" Inherits="Admin_EditUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="scriptCssContent" Runat="Server">
    <link type="text/css" rel="Stylesheet" href="../css/form.css" />
    <link href="../css/tables.css" type="text/css" rel="Stylesheet" />
    <link rel="stylesheet" href="../Resources/XValidation/styles/notifiers.css" type="text/css" media="screen" />
    <script language="javascript" type="text/javascript" src="../js/common.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="titlePlaceHolder" Runat="Server">
    <asp:literal id="pageTitle" runat="server"></asp:literal>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="menuPlaceHolder" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
    <asp:label id="messageLabel" runat="server" visible="false" cssclass="ErrorMessage"></asp:label>
    <br />
    <div class="InputRow">
        <label class="Label" for="<%= tbUsername.ClientID %>"><%= Resources.Strings.Username %><span class="Required">(*)</span></label>
        <asp:textbox id="tbUsername" runat="server" textmode="SingleLine" maxlength="20" cssclass="SingleLine"></asp:textbox>
    </div>
    <div class="InputRow">
        <label class="Label" for="<%= roleList.ClientID %>"><%= Resources.Strings.Roles %><span class="Required">(*)</span></label>
        <asp:radiobuttonlist repeatdirection="Horizontal" id="roleList" runat="server"/>
    </div>
    <div runat="server" id="divAddPassword">
        <div class="InputRow">
            <label id="labelPassword" class="Label" for="<%= tbPassword.ClientID %>"><%= Resources.Strings.Password %><span class="Required" <%= (user != null) ? "style=\"display:none\"" : "" %>>(*)</span></label>
            <asp:textbox id="tbPassword" runat="server" textmode="password" maxlength="20" cssclass="SingleLine" ></asp:textbox>
        </div>
        <div class="InputRow">
            <label id="labelConfirmPassword" class="Label" for="<%= tbConfirmPassword.ClientID %>"><%= Resources.Strings.ConfirmPassword %><span class="Required">(*)</span></label>
            <asp:textbox id="tbConfirmPassword" runat="server" textmode="password" maxlength="20" cssclass="SingleLine"></asp:textbox>
        </div>   
    </div>
    <div runat="server" id="divUpdatePassword">
        <div class="InputRow">
            <label class="Label">&nbsp;</label>
            <asp:hyperlink runat="server" navigateurl="ChangePassword.aspx" id="hlChangePassword" text="<%$ Resources:Strings, ChangePassword %>"></asp:hyperlink>
        </div>
    </div>  
    <div class="InputRow">
        <label class="Label" for="<%= tbEmail.ClientID %>"><%= Resources.Strings.Email %><span class="Required">(*)</span></label>
        <asp:textbox id="tbEmail" runat="server" textmode="SingleLine" maxlength="20" cssclass="SingleLine"></asp:textbox>
    </div>
    <div class="InputRow">
        <label class="Label" for="<%= tbFirstName.ClientID %>"><%= Resources.Strings.FirstName %><span class="Required">(*)</span></label>
        <asp:textbox id="tbFirstName" runat="server" textmode="SingleLine" maxlength="20" cssclass="SingleLine"></asp:textbox>
    </div>
    <div class="InputRow">
        <label class="Label" for="<%= tbLastName.ClientID %>"><%= Resources.Strings.LastName %><span class="Required">(*)</span></label>
        <asp:textbox id="tbLastName" runat="server" textmode="SingleLine" maxlength="20" cssclass="SingleLine"></asp:textbox>
    </div>
    <div class="InputRow">
        <label class="Label">&nbsp;</label>
        <asp:Button id="btAddOrUpdate" runat="server" onclick="AddOrUpdate" />
        <input type="button" value="<%= Resources.Strings.Cancel %>" onclick="window.location='UserManagement.aspx';"
    </div>
    <one:validationmanager id="validationManager" runat="server" formtovalidate="aspnetForm"/>
    
</asp:Content>

